package com.hmall.search.config;

/**
 * @author Ms SUN
 * @date 2023/5/14
 */
/*
@Configuration
public class MqConfig {
    @Bean
    public TopicExchange topicExchange(){
        return new TopicExchange(MQConstants.EXCHANGE_NAME, true, false);
    }

    @Bean
    public Queue insertQueue(){
        return new Queue(MQConstants.QUEUE_NAME_INSERT, true);
    }

    @Bean
    public Queue deleteQueue(){
        return new Queue(MQConstants.QUEUE_NAME_DELETE, true);
    }

    @Bean
    public Binding insertQueueBinding(){
        return BindingBuilder.bind(insertQueue()).to(topicExchange()).with(MQConstants.ROUTING_KEY_INSERT);
    }

    @Bean
    public Binding deleteQueueBinding(){
        return BindingBuilder.bind(deleteQueue()).to(topicExchange()).with(MQConstants.ROUTING_KEY_DELETE);
    }
}
*/
